package serverDB;

import org.hibernate.Session;
/**
 * managing the interactions with database for the table Tages
 * @author ran
 *
 */
public class TagesManager {
	private Session session = null;
	 public TagesManager(Session session) {
	  if(session == null)
	    throw new 
	      RuntimeException("Invalid session object.");
	  this.session = session;
	 }
	 public void save(Tages tag){
	  session.save(tag);
	 }
	 public void update(Tages tag){
	  session.update(tag);
	 }
	 public void delete(Tages tag) {
	  session.delete(tag);
	 }


}
